<?php
	include "config.inc.php";
	$temp = explode("__", $_REQUEST['element_id'] );
	$field = $temp[0];
	$id    = $temp[1];
	$textboxval = mysql_real_escape_string(preg_replace('/[\$]/',"",$_REQUEST["update_value"]));       
	$query      = "UPDATE clients SET $field='$textboxval' WHERE c_id=$id LIMIT 1";
	mysql_query($query);
	//echo $query;
	//echo $field;
	echo($_REQUEST['update_value']);
?>
